Filename | (eval 431)[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm:3] |
Statements | Executed 2584466 statements in 2.24s |
Eval Invoked At | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm line 3 |
Sibling evals | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113 |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
71791 | 2 | 2 | 2.20s | 3.42s | new | JSON::Schema::Modern::Annotation::
1 | 1 | 1 | 19µs | 50µs | BEGIN@11.334 | JSON::Schema::Modern::Annotation::
1 | 1 | 1 | 8µs | 27µs | BEGIN@74 | JSON::Schema::Modern::Annotation::
1 | 1 | 1 | 6µs | 21µs | BEGIN@98 | JSON::Schema::Modern::Annotation::
1 | 1 | 1 | 5µs | 5µs | BEGIN@16.335 | JSON::Schema::Modern::Annotation::
1 | 1 | 1 | 5µs | 60µs | BEGIN@90 | JSON::Schema::Modern::Annotation::
1 | 1 | 1 | 4µs | 10µs | BEGIN@80 | JSON::Schema::Modern::Annotation::
1 | 1 | 1 | 4µs | 11µs | BEGIN@85 | JSON::Schema::Modern::Annotation::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | { | ||||
2 | 2 | 3µs | my $isa_check_for_keyword_5flocation = ${$_[1]->{"\$isa_check_for_keyword_5flocation"}}; | ||
3 | 1 | 1µs | my $_QUOTED = ${$_[1]->{"\$_QUOTED"}}; | ||
4 | 1 | 1µs | my $isa_check_for_absolute_5fkeyword_5flocation = ${$_[1]->{"\$isa_check_for_absolute_5fkeyword_5flocation"}}; | ||
5 | 1 | 1µs | my $isa_check_for_unknown = ${$_[1]->{"\$isa_check_for_unknown"}}; | ||
6 | 1 | 0s | my $_UNQUOTED = ${$_[1]->{"\$_UNQUOTED"}}; | ||
7 | 1 | 2µs | my $coerce_for_absolute_5fkeyword_5flocation = ${$_[1]->{"\$coerce_for_absolute_5fkeyword_5flocation"}}; | ||
8 | 1 | 0s | my $isa_check_for_keyword = ${$_[1]->{"\$isa_check_for_keyword"}}; | ||
9 | 1 | 1µs | my $isa_check_for_instance_5flocation = ${$_[1]->{"\$isa_check_for_instance_5flocation"}}; | ||
10 | package JSON::Schema::Modern::Annotation; | ||||
11 | 2 | 91µs | 2 | 81µs | # spent 50µs (19+31) within JSON::Schema::Modern::Annotation::BEGIN@11.334 which was called:
# once (19µs+31µs) by Sub::Quote::_clean_eval at line 11 # spent 50µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@11.334
# spent 31µs making 1 call to warnings::unimport |
12 | # spent 3.42s (2.20+1.22) within JSON::Schema::Modern::Annotation::new which was called 71791 times, avg 48µs/call:
# 71790 times (2.20s+1.22s) by JSON::Schema::Modern::Utilities::A at line 261 of JSON/Schema/Modern/Utilities.pm, avg 48µs/call
# once (73µs+58µs) by JSON::Schema::Modern::Utilities::A at line 177 of Sub/Defer.pm | ||||
13 | ($_QUOTED,$_UNQUOTED) if 0; | ||||
14 | # BEGIN quote_sub PRELUDE | ||||
15 | package JSON::Schema::Modern::Annotation; | ||||
16 | # spent 5µs within JSON::Schema::Modern::Annotation::BEGIN@16.335 which was called:
# once (5µs+0s) by Sub::Quote::_clean_eval at line 21 | ||||
17 | 1 | 0s | $^H = 2018; | ||
18 | 1 | 0s | ${^WARNING_BITS} = "UUUUUUUUUUUUUUUUUUUU"; | ||
19 | 1 | 5µs | %^H = ( | ||
20 | ); | ||||
21 | 1 | 279µs | 1 | 5µs | } # spent 5µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@16.335 |
22 | # END quote_sub PRELUDE | ||||
23 | 71790 | 32.8ms | my $invoker = CORE::shift(); | ||
24 | 71790 | 33.2ms | my $class = CORE::ref($invoker) ? CORE::ref($invoker) : $invoker; | ||
25 | 71790 | 26.5ms | if ($class ne "JSON::Schema::Modern::Annotation") { | ||
26 | if ($Moo::MAKERS{$class}) { | ||||
27 | if ($Moo::MAKERS{$class}{constructor}) { | ||||
28 | package JSON::Schema::Modern::Annotation; | ||||
29 | return $invoker->SUPER::new(@_); | ||||
30 | } | ||||
31 | Moo->_constructor_maker_for($class); | ||||
32 | return $invoker->new(@_); | ||||
33 | } elsif ($INC{"Moose.pm"} and my $meta = Class::MOP::get_metaclass_by_name($class)) { | ||||
34 | return $meta->new_object( | ||||
35 | $class->can("BUILDARGS") ? $class->BUILDARGS(@_) | ||||
36 | : $class->Moo::Object::BUILDARGS(@_) | ||||
37 | ); | ||||
38 | } | ||||
39 | } | ||||
40 | my $args = scalar @_ == 1 | ||||
41 | ? CORE::ref $_[0] eq 'HASH' | ||||
42 | 71790 | 205ms | ? { %{ $_[0] } } | ||
43 | : Carp::croak("Single parameters to new() must be a HASH ref" | ||||
44 | . " data => ". $_[0]) | ||||
45 | : @_ % 2 | ||||
46 | ? Carp::croak("The new() method for $class expects a hash reference or a" | ||||
47 | . " key/value list. You passed an odd number of arguments") | ||||
48 | : {@_} | ||||
49 | ; | ||||
50 | 71790 | 111ms | if (my @missing = grep !exists $args->{$_}, "annotation", "instance_location", "keyword", "keyword_location") { | ||
51 | Carp::croak("Missing required arguments: ".CORE::join(', ', sort @missing)); | ||||
52 | } | ||||
53 | 71790 | 34.4ms | my $new = bless({}, $class);; | ||
54 | 71790 | 29.1ms | (exists $args->{"absolute_keyword_location"} and ($new->{"absolute_keyword_location"} = scalar do { my $value = do { | ||
55 | 71790 | 135ms | local $Method::Generate::Accessor::CurrentAttribute = { | ||
56 | init_arg => "absolute_keyword_location", | ||||
57 | name => "absolute_keyword_location", | ||||
58 | step => "coercion", | ||||
59 | }; | ||||
60 | 71790 | 29.0ms | (my $_return), | ||
61 | (my $_error), (my $_old_error = $@); | ||||
62 | 71790 | 32.9ms | (eval { | ||
63 | ($@ = $_old_error), | ||||
64 | ($_return = | ||||
65 | 71790 | 136ms | 71790 | 1.15s | $coerce_for_absolute_5fkeyword_5flocation->($args->{"absolute_keyword_location"})), # spent 1.15s making 71790 calls to JSON::Schema::Modern::Annotation::__ANON__[JSON/Schema/Modern/Annotation.pm:35], avg 16µs/call |
66 | 1 | ||||
67 | } or | ||||
68 | $_error = CORE::ref $@ ? $@ : "coercion for \"absolute_keyword_location\" failed: ".$@); | ||||
69 | 71790 | 27.3ms | ($@ = $_old_error), | ||
70 | (defined $_error and CORE::die $_error); | ||||
71 | 71790 | 75.7ms | $_return; | ||
72 | } | ||||
73 | ; | ||||
74 | 215372 | 331ms | 143582 | 62.6ms | # spent 27µs (8+19) within JSON::Schema::Modern::Annotation::BEGIN@74 which was called:
# once (8µs+19µs) by Sub::Quote::_clean_eval at line 74 # spent 36.0ms making 71790 calls to Scalar::Util::blessed, avg 501ns/call
# spent 26.6ms making 71790 calls to UNIVERSAL::isa, avg 370ns/call
# spent 27µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@74
# spent 19µs making 1 call to warnings::unimport |
75 | $value | ||||
76 | } | ||||
77 | )), | ||||
78 | (exists $args->{"annotation"} and ($new->{"annotation"} = $args->{"annotation"})), | ||||
79 | 71790 | 25.1ms | (exists $args->{"instance_location"} and ($new->{"instance_location"} = scalar do { my $value = $args->{"instance_location"}; | ||
80 | 287162 | 134ms | 2 | 16µs | # spent 10µs (4+6) within JSON::Schema::Modern::Annotation::BEGIN@80 which was called:
# once (4µs+6µs) by Sub::Quote::_clean_eval at line 80 # spent 10µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@80
# spent 6µs making 1 call to warnings::unimport |
81 | $value | ||||
82 | } | ||||
83 | )), | ||||
84 | 71790 | 23.9ms | (exists $args->{"keyword"} and ($new->{"keyword"} = scalar do { my $value = $args->{"keyword"}; | ||
85 | 287162 | 86.3ms | 2 | 18µs | # spent 11µs (4+7) within JSON::Schema::Modern::Annotation::BEGIN@85 which was called:
# once (4µs+7µs) by Sub::Quote::_clean_eval at line 85 # spent 11µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@85
# spent 7µs making 1 call to warnings::unimport |
86 | $value | ||||
87 | } | ||||
88 | )), | ||||
89 | 71790 | 17.6ms | (exists $args->{"keyword_location"} and ($new->{"keyword_location"} = scalar do { my $value = $args->{"keyword_location"}; | ||
90 | 287162 | 82.8ms | 2 | 115µs | # spent 60µs (5+55) within JSON::Schema::Modern::Annotation::BEGIN@90 which was called:
# once (5µs+55µs) by Sub::Quote::_clean_eval at line 90 # spent 60µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@90
# spent 55µs making 1 call to warnings::unimport |
91 | $value | ||||
92 | } | ||||
93 | )), | ||||
94 | 71790 | 493ms | ($new->{"unknown"} = scalar do { my $value = ( | ||
95 | exists $args->{"unknown"} | ||||
96 | 71790 | 27.5ms | ? $args->{"unknown"} | ||
97 | : 0); | ||||
98 | 215372 | 115ms | 2 | 36µs | # spent 21µs (6+15) within JSON::Schema::Modern::Annotation::BEGIN@98 which was called:
# once (6µs+15µs) by Sub::Quote::_clean_eval at line 98 # spent 21µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@98
# spent 15µs making 1 call to warnings::unimport |
99 | $value | ||||
100 | } | ||||
101 | ), | ||||
102 | return $new; | ||||
103 | } | ||||
104 | 1 | 3µs | $$_UNQUOTED = \&new; | ||
105 | } | ||||
106 | 1 | 10µs | 1; | ||
107 | |||||
108 | ; |